home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / rayshade / libshade / symtab.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  1KB  |  56 lines

  1. /*
  2.  * symtab.h
  3.  *
  4.  * Copyright (C) 1989, 1991, Craig E. Kolb, Rod G. Bogart
  5.  * All rights reserved.
  6.  *
  7.  * This software may be freely copied, modified, and redistributed
  8.  * provided that this copyright notice is preserved on all copies.
  9.  *
  10.  * You may not distribute this software, in whole or in part, as part of
  11.  * any commercial product without the express consent of the authors.
  12.  * 
  13.  * There is no warranty or other guarantee of fitness of this software
  14.  * for any purpose.  It is provided solely "as is".
  15.  *
  16.  * $Id: symtab.h,v 4.0 91/07/17 14:48:12 kolb Exp Locker: kolb $
  17.  *
  18.  * $Log:    symtab.h,v $
  19.  * Revision 4.0  91/07/17  14:48:12  kolb
  20.  * Initial version.
  21.  * 
  22.  */
  23.  
  24. #ifndef SYMTAB_H
  25. #define SYMTAB_H
  26.  
  27. typedef Float (*FloatFuncPtr)();
  28.  
  29. struct SymtabPredefinedEntry {
  30.     char * name;
  31.     Float f;
  32.     FloatFuncPtr fp;
  33.     int type;
  34.     int timevary;
  35.     int params;
  36. };
  37.  
  38. typedef    union {
  39.     Float (*fp)();
  40.     Expr *expr;
  41. } SymtabValue;
  42.  
  43. typedef struct SymtabEntry {
  44.     char     *name;
  45.     SymtabValue value;
  46.     int type;
  47.     int timevary;
  48.     int params;
  49.     struct SymtabEntry *next;
  50. } SymtabEntry;
  51.  
  52. extern Expr *ExprFloatSymtabFind();
  53. extern SymtabEntry *SymtabFind(), *SymtabBuiltinFind();
  54.  
  55. #endif /* SYMTAB_H */
  56.